
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-checkoff"></use>
                    </svg>
                    <div class="name">check off</div>
                    <div class="fontclass">#icon-osmcs-checkoff</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-checkon"></use>
                    </svg>
                    <div class="name">check on</div>
                    <div class="fontclass">#icon-osmcs-checkon</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-daochu"></use>
                    </svg>
                    <div class="name">daochu</div>
                    <div class="fontclass">#icon-osmcs-daochu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-export"></use>
                    </svg>
                    <div class="name">export</div>
                    <div class="fontclass">#icon-osmcs-export</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-chinamobile"></use>
                    </svg>
                    <div class="name">china mobile1</div>
                    <div class="fontclass">#icon-osmcs-chinamobile</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-chinamobile1"></use>
                    </svg>
                    <div class="name">china mobile2</div>
                    <div class="fontclass">#icon-osmcs-chinamobile1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-cmsoft"></use>
                    </svg>
                    <div class="name">cmsoft1</div>
                    <div class="fontclass">#icon-osmcs-cmsoft</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-cmsoft1"></use>
                    </svg>
                    <div class="name">cmsoft2</div>
                    <div class="fontclass">#icon-osmcs-cmsoft1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-addnew"></use>
                    </svg>
                    <div class="name">add new</div>
                    <div class="fontclass">#icon-osmcs-addnew</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-remove"></use>
                    </svg>
                    <div class="name">remove</div>
                    <div class="fontclass">#icon-osmcs-remove</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-error"></use>
                    </svg>
                    <div class="name">error</div>
                    <div class="fontclass">#icon-osmcs-error</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-confirm"></use>
                    </svg>
                    <div class="name">confirm</div>
                    <div class="fontclass">#icon-osmcs-confirm</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-information"></use>
                    </svg>
                    <div class="name">information</div>
                    <div class="fontclass">#icon-osmcs-information</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-doubt"></use>
                    </svg>
                    <div class="name">doubt</div>
                    <div class="fontclass">#icon-osmcs-doubt</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-downtobottom"></use>
                    </svg>
                    <div class="name">down to bottom</div>
                    <div class="fontclass">#icon-osmcs-downtobottom</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-uptotop"></use>
                    </svg>
                    <div class="name">up to top</div>
                    <div class="fontclass">#icon-osmcs-uptotop</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-search"></use>
                    </svg>
                    <div class="name">search</div>
                    <div class="fontclass">#icon-osmcs-search</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-download"></use>
                    </svg>
                    <div class="name">download</div>
                    <div class="fontclass">#icon-osmcs-download</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-edit"></use>
                    </svg>
                    <div class="name">edit</div>
                    <div class="fontclass">#icon-osmcs-edit</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-trash"></use>
                    </svg>
                    <div class="name">trash</div>
                    <div class="fontclass">#icon-osmcs-trash</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-upload"></use>
                    </svg>
                    <div class="name">upload</div>
                    <div class="fontclass">#icon-osmcs-upload</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-history"></use>
                    </svg>
                    <div class="name">history</div>
                    <div class="fontclass">#icon-osmcs-history</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-user"></use>
                    </svg>
                    <div class="name">user</div>
                    <div class="fontclass">#icon-osmcs-user</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-password"></use>
                    </svg>
                    <div class="name">password</div>
                    <div class="fontclass">#icon-osmcs-password</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-logout"></use>
                    </svg>
                    <div class="name">logout</div>
                    <div class="fontclass">#icon-osmcs-logout</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-contact"></use>
                    </svg>
                    <div class="name">contact</div>
                    <div class="fontclass">#icon-osmcs-contact</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-close"></use>
                    </svg>
                    <div class="name">close</div>
                    <div class="fontclass">#icon-osmcs-close</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-folder"></use>
                    </svg>
                    <div class="name">folder</div>
                    <div class="fontclass">#icon-osmcs-folder</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-librarybooks"></use>
                    </svg>
                    <div class="name">library books </div>
                    <div class="fontclass">#icon-osmcs-librarybooks</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-image"></use>
                    </svg>
                    <div class="name">image </div>
                    <div class="fontclass">#icon-osmcs-image</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-replymessage"></use>
                    </svg>
                    <div class="name">reply message</div>
                    <div class="fontclass">#icon-osmcs-replymessage</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-diamond"></use>
                    </svg>
                    <div class="name">diamond</div>
                    <div class="fontclass">#icon-osmcs-diamond</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-starline"></use>
                    </svg>
                    <div class="name">star line</div>
                    <div class="fontclass">#icon-osmcs-starline</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-checked"></use>
                    </svg>
                    <div class="name">checked</div>
                    <div class="fontclass">#icon-osmcs-checked</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-uncheck"></use>
                    </svg>
                    <div class="name">uncheck</div>
                    <div class="fontclass">#icon-osmcs-uncheck</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-attachment"></use>
                    </svg>
                    <div class="name">attachment</div>
                    <div class="fontclass">#icon-osmcs-attachment</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-tupianjiazaishibai-"></use>
                    </svg>
                    <div class="name">图片加载失败-01</div>
                    <div class="fontclass">#icon-osmcs-tupianjiazaishibai-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-message"></use>
                    </svg>
                    <div class="name">message</div>
                    <div class="fontclass">#icon-osmcs-message</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-top"></use>
                    </svg>
                    <div class="name">top</div>
                    <div class="fontclass">#icon-osmcs-top</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-shop"></use>
                    </svg>
                    <div class="name">shop</div>
                    <div class="fontclass">#icon-osmcs-shop</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-Shape"></use>
                    </svg>
                    <div class="name">Shape</div>
                    <div class="fontclass">#icon-osmcs-Shape</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-rpm"></use>
                    </svg>
                    <div class="name">rpm</div>
                    <div class="fontclass">#icon-osmcs-rpm</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-docker"></use>
                    </svg>
                    <div class="name">docker</div>
                    <div class="fontclass">#icon-osmcs-docker</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-tar"></use>
                    </svg>
                    <div class="name">tar</div>
                    <div class="fontclass">#icon-osmcs-tar</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-binary"></use>
                    </svg>
                    <div class="name">binary</div>
                    <div class="fontclass">#icon-osmcs-binary</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-switch-on"></use>
                    </svg>
                    <div class="name">switch-on</div>
                    <div class="fontclass">#icon-osmcs-switch-on</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-switch-off"></use>
                    </svg>
                    <div class="name">switch-off</div>
                    <div class="fontclass">#icon-osmcs-switch-off</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-list"></use>
                    </svg>
                    <div class="name">list</div>
                    <div class="fontclass">#icon-osmcs-list</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-calendar"></use>
                    </svg>
                    <div class="name">calendar </div>
                    <div class="fontclass">#icon-osmcs-calendar</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-close-empty"></use>
                    </svg>
                    <div class="name">close-empty</div>
                    <div class="fontclass">#icon-osmcs-close-empty</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-file-text"></use>
                    </svg>
                    <div class="name">file-text </div>
                    <div class="fontclass">#icon-osmcs-file-text</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-batchaudit"></use>
                    </svg>
                    <div class="name">batch audit</div>
                    <div class="fontclass">#icon-osmcs-batchaudit</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-lace"></use>
                    </svg>
                    <div class="name">lace</div>
                    <div class="fontclass">#icon-osmcs-lace</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-right-empty"></use>
                    </svg>
                    <div class="name">right-empty</div>
                    <div class="fontclass">#icon-osmcs-right-empty</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-like"></use>
                    </svg>
                    <div class="name">like</div>
                    <div class="fontclass">#icon-osmcs-like</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-layers"></use>
                    </svg>
                    <div class="name">layers </div>
                    <div class="fontclass">#icon-osmcs-layers</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-stackoverflow"></use>
                    </svg>
                    <div class="name">stack overflow </div>
                    <div class="fontclass">#icon-osmcs-stackoverflow</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-screen-desktop"></use>
                    </svg>
                    <div class="name">screen-desktop</div>
                    <div class="fontclass">#icon-osmcs-screen-desktop</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-globe"></use>
                    </svg>
                    <div class="name">globe </div>
                    <div class="fontclass">#icon-osmcs-globe</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-scanningconfigurati"></use>
                    </svg>
                    <div class="name">scanning configurati</div>
                    <div class="fontclass">#icon-osmcs-scanningconfigurati</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-shield"></use>
                    </svg>
                    <div class="name">shield</div>
                    <div class="fontclass">#icon-osmcs-shield</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-back"></use>
                    </svg>
                    <div class="name">back</div>
                    <div class="fontclass">#icon-osmcs-back</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-drop-up"></use>
                    </svg>
                    <div class="name">drop-down  </div>
                    <div class="fontclass">#icon-osmcs-drop-up</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-drop-up1"></use>
                    </svg>
                    <div class="name">drop-up</div>
                    <div class="fontclass">#icon-osmcs-drop-up1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-starsolid"></use>
                    </svg>
                    <div class="name">starsolid</div>
                    <div class="fontclass">#icon-osmcs-starsolid</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-email"></use>
                    </svg>
                    <div class="name">email</div>
                    <div class="fontclass">#icon-osmcs-email</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-relevantinfo"></use>
                    </svg>
                    <div class="name">relevant info</div>
                    <div class="fontclass">#icon-osmcs-relevantinfo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-replycomments"></use>
                    </svg>
                    <div class="name">reply comments</div>
                    <div class="fontclass">#icon-osmcs-replycomments</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-phone"></use>
                    </svg>
                    <div class="name">phone </div>
                    <div class="fontclass">#icon-osmcs-phone</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-recommendmark"></use>
                    </svg>
                    <div class="name">recommend mark</div>
                    <div class="fontclass">#icon-osmcs-recommendmark</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-touxiang"></use>
                    </svg>
                    <div class="name">头像1</div>
                    <div class="fontclass">#icon-osmcs-touxiang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-headportrait"></use>
                    </svg>
                    <div class="name">head portrait</div>
                    <div class="fontclass">#icon-osmcs-headportrait</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-chaosonggeishui"></use>
                    </svg>
                    <div class="name">@抄送给谁</div>
                    <div class="fontclass">#icon-osmcs-chaosonggeishui</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-back1"></use>
                    </svg>
                    <div class="name">back</div>
                    <div class="fontclass">#icon-osmcs-back1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-top1"></use>
                    </svg>
                    <div class="name">top2</div>
                    <div class="fontclass">#icon-osmcs-top1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-top2"></use>
                    </svg>
                    <div class="name">top3</div>
                    <div class="fontclass">#icon-osmcs-top2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-top3"></use>
                    </svg>
                    <div class="name">top4</div>
                    <div class="fontclass">#icon-osmcs-top3</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-top4"></use>
                    </svg>
                    <div class="name">top5</div>
                    <div class="fontclass">#icon-osmcs-top4</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-top5"></use>
                    </svg>
                    <div class="name">top1</div>
                    <div class="fontclass">#icon-osmcs-top5</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-touxiang1"></use>
                    </svg>
                    <div class="name">头像</div>
                    <div class="fontclass">#icon-osmcs-touxiang1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-osmcs-iso"></use>
                    </svg>
                    <div class="name">iso</div>
                    <div class="fontclass">#icon-osmcs-iso</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-osmcs-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
